package com.carrentalplatform.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 租赁订单实体类
 */
@Data
@TableName("rental_order")
public class RentalOrder {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("vehicle_id")
    private Long vehicleId;

    @TableField("start_shop_id")
    private Long startShopId;

    @TableField("end_shop_id")
    private Long endShopId;

    @TableField("start_time")
    private LocalDateTime startTime;

    @TableField("end_time")
    private LocalDateTime endTime;

    @TableField("total_price")
    private BigDecimal totalPrice;

    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;
} 